using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ShopPowerTemplate.IoC;
using ShopPowerTemplate.Entities;
using ShopPowerTemplate.Services.Tests.Properties;

namespace ShopPowerTemplate.Services.Tests
{
    public partial class OptionTypeServiceUtil
    {
	
		static internal IOptionTypeService CreateOptionTypeService()
        {
            IOptionTypeService target = IoCFactory.Resolve<IOptionTypeService>();
            return target;
        }
				#region OptionType Test
 
        

		public static OptionType CreateOptionType()
        {
            OptionType result = GetOptionType();
            IOptionTypeService service = CreateOptionTypeService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
		
		public static OptionType CreateOptionTypeFull()
        {
            OptionType result = GetOptionTypeFull();
            IOptionTypeService service = CreateOptionTypeService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
				
        public static OptionType GetOptionType()
        {
            OptionType result = new OptionType();
			
            result.Name = Guid.NewGuid().ToString();

            result.Description = Guid.NewGuid().ToString();
 
            return result;
            
        }
		
        public static OptionType GetOptionTypeFull()
        {
            OptionType result = GetOptionType();
             
            return result;
            
        }
		
		#endregion OptionType Test
	

	}
}
